package com.dgut.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dgut.cache.MybatisRedisCache;
import com.dgut.pojo.User;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@CacheNamespace(implementation = MybatisRedisCache.class,eviction=MybatisRedisCache.class)
public interface UserMapper extends BaseMapper<User> {
    //用户更新密码
    @Update("update user set password = #{password1} where id =#{id};")
    public Integer UpdateUserPasword(Integer id,String password1,String password2);
}
